package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.EquipmentDao;
import com.infoauto.opc.gateway.model.gtm4.Equipment;
import com.infoauto.opc.gateway.service.EquipmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EquipmentServiceImpl implements EquipmentService {
    @Autowired
    private EquipmentDao dao;
    @Override
    public Equipment selectByplcAddr(String plcAddr) {
        return dao.selectByplcAddr(plcAddr);
    }

    @Override
    public List<Equipment> slelctByEquipmentCompanyId(Integer equipmentCompanyId) {
        return dao.slelctByEquipmentCompanyId(equipmentCompanyId);
    }
}
